#ifndef _DATA_PLOT_H
#define _DATA_PLOT_H 1

#include <qwt_plot.h>
#include "XlsData.h"

const int PLOT_SIZE = 365;



class DataPlot : public QwtPlot
{
    Q_OBJECT

public:
    DataPlot(DataTobeShown *dataTobeShown, QWidget* = NULL );
    virtual ~DataPlot();

public slots:
    void setTimerInterval(double interval);

protected:
    virtual void timerEvent(QTimerEvent *e);

private:
    void alignScales();

    double *d_x;
    double *d_y;

    int d_interval; // timer in ms
    int d_timerId;
};

#endif
